import Mock from "mockjs"
let List = []
export default {
    getStatisticalData: () => {
        for (let i = 0; i < 7; i++) {
            List.push(
                Mock.mock({
                    苹果: Mock.Random.float(100, 8000, 0, 0),
                    vivo: Mock.Random.float(100, 8000, 0, 0),
                    oppo: Mock.Random.float(100, 8000, 0, 0),
                    魅族: Mock.Random.float(100, 8000, 0, 0),
                    三星: Mock.Random.float(100, 8000, 0, 0),
                    小米: Mock.Random.float(100, 8000, 0, 0),
                })
            )
        }
        return {
            code: 20000,
            data: {
                videoData: [{
                    name: "小米",
                    value: 2999
                },
                {
                    name: "苹果",
                    value: 6999
                },
                {
                    name: "vivo",
                    value: 3499
                },
                {
                    name: "oppo",
                    value: 1999
                },
                {
                    name: "魅族",
                    value: 3999
                },
                {
                    name: "三星",
                    value: 4999
                }
                ],
                userData: [
                    {
                        date: "周一",
                        new: 5,
                        active: 100
                    },
                    {
                        date: "周二",
                        new: 8,
                        active: 320
                    },
                    {
                        date: "周三",
                        new: 6,
                        active: 140
                    },
                    {
                        date: "周四",
                        new: 25,
                        active: 240
                    },
                    {
                        date: "周五",
                        new: 15,
                        active: 200
                    },
                    {
                        date: "周六",
                        new: 10,
                        active: 160
                    },
                    {
                        date: "周日",
                        new: 25,
                        active: 390
                    }
                ],
                orderData: {
                    date: ["20191001", "20191002", "20191003", "20191004", "20191005", "20191006", "20191007",],
                    data:List
                },
                tableData: [
                    {
                        name: "oppo",
                        todayBuy: "500",
                        monthBuy: "3500",
                        totalBuy: "22000"
                    },
                    {
                        name: "苹果",
                        todayBuy: "100",
                        monthBuy: "1000",
                        totalBuy: "10000"
                    },
                    {
                        name: "小米",
                        todayBuy: "300",
                        monthBuy: "2988",
                        totalBuy: "33560"
                    },
                    {
                        name: "vivo",
                        todayBuy: "387",
                        monthBuy: "3456",
                        totalBuy: "22222"
                    },
                    {
                        name: "魅族",
                        todayBuy: "669",
                        monthBuy: "2340",
                        totalBuy: "14560"
                    },
                    {
                        name: "三星",
                        todayBuy: "450",
                        monthBuy: "1450",
                        totalBuy: "12450"
                    },
                ]
            }
        }
    }
}